<template>
    <div class="b">
        <div class="z-main">
            <div class="p"></div>
            <div class="txt">实时充电</div>
        </div>
        <div class="a">
            <Vue3SeamlessScroll :list="props.data" class="scroll" :step="0.2">
                <div class="item" v-for="(item, index) in data" :key="index">
                    <div class="left">
                        <!-- <div class="num">NO.{{ index + 1 }}</div> -->
                        <div class="tel">{{ item.phoneNumber }}</div>
                    </div>
                    <div class="right">{{ item.timeStr }}</div>
                </div>
            </Vue3SeamlessScroll>
        </div>
    </div>

</template>

<script setup>
import { Vue3SeamlessScroll } from "vue3-seamless-scroll";
import { reactive, onMounted, ref } from 'vue'

const props = defineProps({
    data: Object
})





</script>
<style lang="scss" scoped>
.scroll {
    height: 250px;
    overflow: hidden;
    max-height: 250px;
    min-height: 250px;
}


.scroll {
    padding-right: 30px;

    .item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        background: linear-gradient(270deg, rgba(36, 186, 255, 0.08) 0%, rgba(36, 186, 255, 0) 100%);
        border-radius: 5px;
        margin-bottom: 10px;

        .right {
            font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
            font-weight: 900;
            font-size: 24px;
            color: #9DA9B9;
            font-style: italic;
        }

        .left {

            .num {
                font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
                font-weight: 900;
                font-size: 18px;
                color: #24BAFF;
                font-style: italic;
            }

            .tel {
                font-family: Source Han Sans, Source Han Sans;
                font-weight: 700;
                font-size: 18px;
                color: #FFFFFF;
            }
        }

    }
}

.z-main {
    background: url(../../../assets/image/t.png) no-repeat;
    background-size: cover;
    width: 455px;
    height: 34px;
    display: flex;
    align-items: center;

    .p {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        margin-right: 10px;
        background-color: #fff;
        margin-left: 50px;
    }

    .txt {
        font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
        font-weight: 900;
        font-size: 18px;
        color: #FFFFFF;
    }
}
</style>